<?php 
$linkImg = FILES_URL.'/developer/imgs/img20x20/' ;
$linkImg45 = FILES_URL.'/users/img45x45/' ;
$linkImgAvatar = FILES_URL.'/users/img100x100/'.$this->infoUser['user_avatar'] ;
$linkNoAvatar = FILES_URL.'/users/img100x100/no-img.png';
?>
<div class="left-container">
				<div class="profile">
					<img src="<?php if(!empty($this->infoUser['user_avatar'])){echo $linkImgAvatar?>
							<?php }else{echo $linkNoAvatar?>					
							<?php }?>	
						" /> <br>
					<div class="profile-name">
						<a href='<?php echo $this->baseUrl("frontend/user/index/id/").$this->infoUser['id']."/ranking/0"?>'>
							<?php echo $this->infoUser['user_name']?>		 
						</a>
					</div>					
					<div style="margin-left:20px">So diem :<span class="score"><?php echo $this->infoUser['score']?></span></div>
					
				</div>
				<br />
				<div class="title" id="love">CÁ NHÂN</div>
				<ul id="love-ul">
					<li><img src="<?php echo $this->imgUrl?>/imgs/mail.png" style="margin-top:7px;"/>
						<a href="#">Kết bạn </a>
						<img id="numberRequest" alt="" src="<?php echo $this->imgUrl.'/number-request.png'?>" class="icon-request">
						<div id="number" class="number-request"><?php echo count($this->requestAddFriend)?></div>
						<div class="list-request-add-friend" id="listRequestAddFriend">
							<div class="title5">Lời mời kết bạn </div>
							<?php if(count($this->requestAddFriend)==0){?>
								<p style="margin:10px">Không có lời mời kết bạn nào! </p>
							<?php }?>
							<ul>
								<?php if(count($this->infoUserSendRequest)){foreach($this->infoUserSendRequest as $key=>$value){?>
								<li>
									<img alt="" src="<?php echo $linkImg45.$value['user_avatar']?>" style="float:left">
									<span class="name"><a href=""><?php echo $value['user_name']?> </a></span>
									<div id="notNow"class="accept-cancel1"> </div>
									<div id="accept<?php echo $value['id']?>" onclick ="acceptRequest('<?php echo $this->baseUrl($this->currentController) ?>/accept-request-friend/user_id_respond/<?php echo $value['id']?>',accept<?php echo $value['id']?>)"  class="accept-cancel"> </div>
								</li>
								<?php }} ?>
								
							</ul>
						</div>
					</li>
					
					<li><img style="margin-top:7px;" src="<?php echo $this->imgUrl?>/imgs/event.png" /><a href="#">Sự kiện</a></li>
					
					
					<li><img style="margin-top:7px;" src="<?php echo $this->imgUrl?>/imgs/album.jpg" />
						<a href="#">Thách đấu </a>
						<img id="iconChallenge" alt="" src="<?php echo $this->imgUrl.'/challenge.png'?>" class="icon-request">
						<div id="numberChallenge" class="number-request"><?php echo count($this->requestChallenge)?></div>
						<div class="list-request-add-friend" id="listRequestChallenge" >
							<div class="title5">Lời mời thách đấu </div>
							<?php if(count($this->requestChallenge)==0){?>
								<p style="margin:10px">Không có lời mời thách đấu nào! </p>
							<?php }?>
							<ul>
								<?php if(count($this->infoUserSendRequestChallenge)>0){foreach($this->infoUserSendRequestChallenge as $key=>$value){?>
								<li>
									<img alt="" src="<?php echo $linkImg45.'trungnc.jpg'?>" style="float:left">
									<span class="name"><a href=""><?php echo $value['user_name']?> </a></span>
									<div id="accept<?php echo $value['id']?>" onclick ="acceptRequestChallenge('<?php echo $this->baseUrl($this->currentController) ?>/accept-challenge/user_id_respond/<?php echo $value['id']?>',accept<?php echo $value['id']?>)">
										<a href="#" id="link_challenge"> <?php echo $this->linkApp[$key].'/challenge/1'?></a> 
									</div>
								</li>
								<?php }} ?>
								
							</ul>
						</div>
					</li>
				</ul>
				<hr />
				<br />
				<div class="title" id="thidau">THI ĐẤU</div>
				<ul id="thidau-ul">
					<li><img style="margin-top:7px;" src="<?php echo $this->imgUrl?>/imgs/heart.png" /><a href="<?php echo $this->baseUrl('frontend/game/challenge/type/1')?>">Đấu đơn </a></li>
					<li><img style="margin-top:7px;" src="<?php echo $this->imgUrl?>/imgs/rocket-fly.png" /><a href="#">Đấu đội </a></li>
					<li><img style="margin-top:7px;" src="<?php echo $this->imgUrl?>/imgs/thachdau.png" /><a href="<?php echo $this->baseUrl('frontend/game/challenge/type/3')?>">Thách đấu </a></li>
				</ul>
				<hr />
				<br>
				
				<div class="title" id="gamehay">GAME HAY</div>
				<ul id="gamehay-ul">
					<?php foreach($this->topGame as $key=>$value){?>
						<li><img src="<?php echo $linkImg.$value['link_img'] ?>" /> <a href="<?php echo $this->baseUrl('frontend/game/article/id/'.$value['id'].'/typePlay/1')?>"><?php echo $value['name_app']?> </a></li>
					
					<?php } ?>
					
				</ul>
				<hr />
				<br>
				
				<div class="title" id="sachnoibat">SÁCH NỔI BẬT </div>
				<ul id="sachnoibat-ul">
					<?php foreach($this->topBook as $key=>$value){?>
						<li><img src="<?php echo $linkImg.$value['link_img'] ?>" /> <a href="<?php echo $this->baseUrl('frontend/books/article/id/'.$value['id'].'/typePlay/1')?>"><?php echo $value['name_app']?> </a></li>
					
					<?php } ?>
				</ul>
				<hr />
				<br>
				
				
				<div class="title" id="topdownload">TOP DOWNLOAD</div>
				<ul id="topdownload-ul">
					<?php foreach($this->topDownload as $key=>$value) {?>
					<li><img src="<?php echo $linkImg.$value['link_img'] ?>" /> <a href="#"><?php echo $value['name_app']?> </a></li>
					<?php } ?>
				</ul>
				<hr />
				<br>
				
			</div>